package com.cake.service.inter;

import java.util.List;

import com.cake.entity.XxRole;
import com.cake.service.base.IBaseService;

public interface IXxRoleService extends IBaseService<XxRole>{

	/**
	 * 获取所有的角色信息
	 * @return
	 */
	List<XxRole> selectAllRoles();
	
	/**
	 * 更新后台操作人员的角色
	 * @param roles
	 * @param adminId
	 * @return
	 */
	Integer updateAdminRoles(String[] roles, Long adminId);
	
	/**
	 * 通过roleId查询一个角色的详情以及拥有的菜单
	 * @return
	 */
	XxRole selectRoleAndMenuByRoleId(Long roleId);
	
	/**
	 * 添加或者修改一条角色信息
	 * @param xxRole
	 * @return
	 */
	Integer insertOrUpdateRole(XxRole xxRole);
}
